#include "textureplane.h"

TexturePlane::TexturePlane () {
    
    this->vertices[ 0] = -1.0f;
    this->vertices[ 1] = -1.0f;
    this->vertices[ 2] =  0.0f;
    this->vertices[ 3] = +1.0f;
    
    this->vertices[ 4] = +1.0f;
    this->vertices[ 5] = -1.0f;
    this->vertices[ 6] =  0.0f;
    this->vertices[ 7] = 1.0f;
    
    this->vertices[ 8] = -1.0f;
    this->vertices[ 9] = +1.0f;
    this->vertices[10] =  0.0f;
    this->vertices[11] =  1.0f;
    
    this->vertices[12] = +1.0f;
    this->vertices[13] = +1.0f;
    this->vertices[14] =  0.0f;
    this->vertices[15] =  1.0f;
    
    this->indices[0] = 0;
    this->indices[1] = 1;
    this->indices[2] = 2;
    
    this->indices[3] = 1;
    this->indices[4] = 3;
    this->indices[5] = 2;
}

TexturePlane::~TexturePlane () {}

GLfloat * TexturePlane::getVertices () {
    return this->vertices; 
}

GLuint * TexturePlane::getIndices () {
   return this->indices; 
}

GLuint TexturePlane::getVertexCount () {
    return sizeof(this->vertices)/sizeof(GLfloat);
}

GLuint TexturePlane::getIndexCount () {
    return sizeof(this->indices)/sizeof(GLuint);
}